import logging.config
import yaml
import os

def setup_logging(default_path='config/config.yaml', default_level=logging.INFO):
    with open(default_path, 'rt') as f:
        config = yaml.safe_load(f.read())
    logging_config = config.get('logging', {})
    logging.config.dictConfig(logging_config)

def create_directories():
    if not os.path.exists('results/logs'):
        os.makedirs('results/logs')

